﻿<%@ Page Title="订单列表" Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master"
    AutoEventWireup="true" CodeBehind="OrderConfromList.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.OrderManage.OrderConfromList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0);">所有订单</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                医疗机构：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtHospitalName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                采购单名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOrderName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                订货时间：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtBegin" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                                    Width="62px"></asp:TextBox>-<asp:TextBox ID="txtEnd" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                                        Width="62px"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="searchbtn" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwProduceCatalog" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="OrderID" HeaderText="订单ID" Visible="false" />
            <asp:TemplateField HeaderText="采购单名称">
                <ItemTemplate>
                    <a href='OrderConfirmDetail.aspx?orderID=<%# Eval("OrderID") %>'>
                        <asp:Label runat="server" ID="lblOrderName" Text='<%#(DataBinder.Eval(Container,"DataItem.OrderName")) %>'></asp:Label></a>
                </ItemTemplate>
            </asp:TemplateField>
            <%--  <asp:BoundField DataField="HospitalName" HeaderText="采购医疗机构" />--%>
            <asp:TemplateField HeaderText="采购医疗机构">
                <ItemTemplate>
                    <a href="javascript:void(0)" title="查看医疗机构详细信息" onclick="window.open('../../CommonPage/HospitalInfo.aspx?hospitalId=<%# Eval("HospitalID") %>','selectCompany','width=550,height=350,resizable=0,scrollbars=0, status=0, toolbar=0, menubar=0')">
                        <%# Eval("HospitalName")%></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="StartTime" HeaderText="开始时间" DataFormatString="{0:yyyy-MM-dd}" />
            <asp:BoundField DataField="PlanEndTime" HeaderText="结束时间" DataFormatString="{0:yyyy-MM-dd}" />
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <%--<div class="listctrl">
    <hz:HzButton ID="btnConfirm" runat="server" Text="确认采购单"
            CssClass="btn" OperateType="确认" onclick="btnConfirm_Click" />
    </div>--%>
</asp:Content>
